// pages/course/index.js
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list:[
      {
        title:'高中英语：名词性从句与定语从句',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/3.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/(1)%E5%90%8D%E8%AF%8D%E6%80%A7%E4%BB%8E%E5%8F%A5%E4%B8%8E%E5%AE%9A%E8%AF%AD%E4%BB%8E%E5%8F%A5%E8%BE%A8%E6%9E%90%E7%AC%AC1%E6%AE%B5.mp4'
      },
      {
        title:'高中数学：圆锥曲线',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/1.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/(1)%E5%9C%86%E9%94%A5%E6%9B%B2%E7%BA%BF%E4%B8%AD%E5%AE%9A%E7%82%B9%26%E5%AE%9A%E5%80%BC%E9%97%AE%E9%A2%98(%E4%B8%8A)%E4%BE%8B1.mp4'
      },
      {
        title:'高中生物：遗传图谱的分析',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/6.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/6.1%E9%81%97%E4%BC%A0%E5%9B%BE%E8%B0%B1%E7%9A%84%E5%88%86%E6%9E%90%E7%9F%A5%E8%AF%86%E7%82%B9.mp4'
      },
      {
        title:'高中语文：文言文专项',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210521164917.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/8.%E6%96%87%E8%A8%80%E6%96%87%E4%B8%BB%E9%A2%98%E4%B8%93%E9%A1%B9%E7%AA%81%E7%A0%B4.mp4'
      },
      {
        title:'高中物理：磁场',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/4.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/%E6%9C%9F%E6%9C%AB%E8%80%83%E9%A2%98%E6%8A%80%E5%B7%A7%E5%B8%A6%E7%94%B5%E7%B2%92%E5%AD%90%E5%9C%A8%E7%A3%81%E5%9C%BA%E4%B8%AD%E4%B8%B4%E7%95%8C%E9%97%AE%E9%A2%98.avi'
      },
      {
        title:'高中化学：化学平衡判断',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/5.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/%E7%AC%AC6%E8%AE%B2%E5%8C%96%E5%AD%A6%E5%B9%B3%E8%A1%A1%E5%88%A4%E6%96%AD_ev_17722.mp4'
      },
    ]
  },
  itemClick:function(e){
    
    var item = e.currentTarget.dataset.item;
    console.log(item)
    wx.setStorageSync('curCourse', item)
    wx.navigateTo({
      url: '/pages/courseDetail/index',
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})